/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-5-12 上午10:30 Created by lyyang
 */
package com.xunton.bss.weixin.api.token.pdu;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.xunton.bss.weixin.api.Response;

/**
 * 用户授权以后的accesstoken
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-5-12 上午10:30
 */
public class UserAccessToken  extends Response
{
    @JsonProperty ("access_token")
    private String accessToken;

    @JsonProperty ("expires_in")
    private long expiresIn;

    @JsonProperty ("refresh_token")
    private String refreshToken;

    @JsonProperty ("openid")
    private String openId;

    private String scope;

    @JsonProperty ("unionid")
    private String unionId;

    public String getAccessToken()
    {
        return accessToken;
    }

    public void setAccessToken(String accessToken)
    {
        this.accessToken = accessToken;
    }

    public long getExpiresIn()
    {
        return expiresIn;
    }

    public void setExpiresIn(long expiresIn)
    {
        this.expiresIn = expiresIn;
    }

    public String getRefreshToken()
    {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken)
    {
        this.refreshToken = refreshToken;
    }

    public String getOpenId()
    {
        return openId;
    }

    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getScope()
    {
        return scope;
    }

    public void setScope(String scope)
    {
        this.scope = scope;
    }

    public String getUnionId()
    {
        return unionId;
    }

    public void setUnionId(String unionId)
    {
        this.unionId = unionId;
    }
}
